﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AmazonManage.aspx.cs" Inherits="famails.BackEnd.page.AmazonManage" MasterPageFile="~/Master.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div style="width:100%;padding:10px;">

    <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12" style="border:1px solid #333;padding:0px;margin-bottom:10px;">
        <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12" style="padding:10px 20px;background:#000;color:#fff;font-size:18px;font-weight:bold;position:relative;">   
            Tìm kiếm Email trên hệ thống
        </div>
        <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12" style="height: auto;padding:10px;">
            <asp:Panel Visible="false" ID="pnError" runat="server">
                <div class="error-box round">
                    <asp:Label ID="lblError" runat="server" Text=""></asp:Label>                          
                </div>
            </asp:Panel> 
            <asp:Panel Visible="false" ID="pnSuccess" runat="server">
                <div class="confirmation-box round">
                    <asp:Label ID="lblSuccess" runat="server" Text=""></asp:Label>                              
                </div>
            </asp:Panel>
        </div>
        <div class="col-md-4 col-xs-12 col-sm-6 col-lg-4" style="height: auto;padding:0px;">
            <div class="col-md-4 col-xs-5 col-sm-5 col-lg-4" style="height: auto;padding:18px 0px;text-align:center">
                <fieldset>
                    <label for="simple-input" style="font-weight: bolder; text-transform: none">
                    Email Verify</label>
                </fieldset>
            </div>
            <div class="col-md-8 col-xs-7 col-sm-7 col-lg-8" style="height: auto;padding:10px;">
                <fieldset>
                        <asp:TextBox ID="txtEmailVerify" 
                        runat="server" CssClass="form-control" style="margin-bottom:10px;border:1px solid #333;border-radius:0px;" ToolTip="Nhập địa chỉ Email muốn xác thực với Amazon"></asp:TextBox><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmailVerify"
                        Display="Dynamic" ErrorMessage="Email không hợp lệ" ValidationExpression="^([\w\.\-]+)@([\w\-]+)((\.(\w){2,3})+)$"
                        ValidationGroup="CheckInput_Email"></asp:RegularExpressionValidator>   
                </fieldset>
            </div>
        </div>
        <div class="col-md-4 col-xs-12 col-sm-6 col-lg-4" style="height: auto;padding:0px;">
            <div class="col-md-4 col-xs-5 col-sm-5 col-lg-4" style="height: auto;padding:18px 0px;text-align:center">
                <fieldset>
                    <label for="simple-input" style="font-weight: bolder; text-transform: none">
                    Tên cấu hình</label>
                </fieldset>
            </div>
            <div class="col-md-8 col-xs-7 col-sm-7 col-lg-8" style="height: auto;padding:10px;">
                <fieldset>
                    <asp:TextBox ID="txtNameConfig" runat="server" ToolTip="Tên cấu hình là tên hiện thị khi bạn gửi đến hộp thư của người khác" CssClass="form-control" style="margin-bottom:10px;border:1px solid #333;border-radius:0px;"></asp:TextBox>                </fieldset>
            </div>
        </div>
        <div class="col-md-4 col-xs-12 col-sm-12 col-lg-4" style="height: auto;padding:9px;">
                <button ValidationGroup="CheckInput_Email" runat="server" class="btn" style="background:#333;color:#fff;text-align:center;padding:6px 15px;border-radius:0px;" onserverclick="btnVerify_Click">
                    <span style="margin-right:10px;" class="fa fa-key"></span> Verify
                </button>
                <button runat="server" class="btn" style="background:#333;color:#fff;text-align:center;padding:6px 15px;border-radius:0px;" onserverclick="btnReload_Click">
                    <span style="margin-right:10px;" class="fa fa-refresh"></span> Làm mới
                </button>
            <asp:Label ID="lbuser" runat="server" Visible="False"></asp:Label>
        </div>
        <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12" style="height: auto;padding:5px 10px;">
            <asp:Panel Visible="false" ID="pnSuccessverify" runat="server">
                <div class="confirmation-box round">
                    <asp:Label ID="lbverify" runat="server" Text="Label"></asp:Label>
                    <asp:Button ID="btnSaveAndSend" runat="server" Text="Kích hoạt " CssClass="round blue ic-right-arrow" OnClientClick="return confirmDelete('Chúng tôi đã gởi một email đến địa chỉ mail bạn cần verify.Bạn vui lòng mở mail để kích hoạt sử dụng') " OnClick="btnSaveAndSend_Click"       />
                </div>
            </asp:Panel>
        </div>
        <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12" style="padding:10px 20px;background:#000;color:#fff;font-size:18px;font-weight:bold;position:relative;">   
            Danh sách Email trong hệ thống
        </div>
        <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12" style="height: auto;padding:10px;">
            <fieldset>
                    <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                        <thead>
                            <tr>
                                <th style="width:80px;text-align:center;">#</th>
                                <th>Email xác thực</th>
                                <th>Tên cấu hình</th>
                                <th style="width:100px;">Tùy chỉnh</th>
                            </tr>
                        </thead>
                        <tbody>
                    <asp:Repeater ID="dtlEmail" runat="server">
                         <ItemTemplate>
                            <tr>
                                <td>
                                    <asp:Label ID="lblUserId" runat="server" Text='<%# Eval("No") %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblEmail" runat="server" Text='<%# Eval("Email") %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                                </td>
                                <td style="text-align:center;">
                                    <asp:LinkButton ID="lbtContentDelete" runat="server"
								    OnClientClick="return confirmDelete('Nếu tiếp tục dữ liệu sẽ bị xóa khỏi hệ thống ?')"
                                    style="color:#333;" CommandArgument='<%# Eval("Id") %>' 
                                    onclick="lbtContentDelete_Click"><span style="font-size:18px;" class="fa fa-trash-o"></span></asp:LinkButton>
                                </td>
                            </tr>     
                         </ItemTemplate>
                     </asp:Repeater>
                        </tbody>
                    </table>
            </fieldset>
        </div>
    </div>
</div>

<script>
    $(document).ready(function () {
        $('#dataTables-example').dataTable();
    });
</script>
</asp:Content>

